<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:h="http://java.sun.com/jsf/html">
<h:body>
    <h:form>
        <h:panelGrid columns="1">
            <h:panelGroup>
                <h:outputText value="Редактирование конфига: "/>
                <h:inputText value="#{editconfigrightbean.deltaConfig.configName}"/>
            </h:panelGroup>
            <h:panelGrid border="1" columns="1">
                <h:panelGroup>
                    <h:outputText value="Заглавный комментарий  "/>
                    <h:inputText value="#{editconfigrightbean.deltaConfig.configList.headerComment}"/>
                </h:panelGroup>
                <h:panelGroup>
                    <h:outputText value="Конечный комментарий  "/>
                    <h:inputText value="#{editconfigrightbean.deltaConfig.configList.footerComment}"/>
                </h:panelGroup>
            </h:panelGrid>
            <h:dataTable border="1" value="#{editconfigrightbean.deltaConfig.configList.elements}"
                         var="config">
                <h:column>
                    <h:inputText value="#{config.key}"/>
                </h:column>
                <h:column>
                    <h:outputText value=" = "/>
                </h:column>
                <h:column>
                    <h:inputText value="#{config.value}"/>
                </h:column>
            </h:dataTable>
            <h:panelGroup>
                <h:commandButton value="Сохранить" action="#{editconfigrightbean.saveEditedConfig}"/>
                <h:commandButton value="Отмена" action="#{editconfigrightbean.cancelReconfig}"/>
            </h:panelGroup>
            <h:commandButton value="Выгрузить конфиг" action="#{downloadrightbean.goDownloadPage}"/>
        </h:panelGrid>
    </h:form>
</h:body>
</html>